Micron Document
Fox's Git Mirrors


Displaying Raw • Download

examples/wasm/vendor/github.com/mdlayher/socket/netns_others.go 83609bcb589eb3cfc35b98ecc0b3327b2ae99d77 (83609bcb) Text, 304 B

//go:build !linux
// +build !linux

package socket

import (
"fmt"
"runtime"
)

// withNetNS returns an error on non-Linux systems.
func withNetNS(_ int, _ func() (*Conn, error)) (*Conn, error) {
return nil, fmt.Errorf("socket: Linux network namespace support is not available on %s", runtime.GOOS)
}

Served by rngit 1.5.4 - Generated in 0.02s